FROM openjdk:8-jdk
ENV JAVA_OPTS="\
-Xmx4g \
-Dfile.encoding=UTF-8 \
-javaagent:/app/lib/transmittable-thread-local-2.6.1.jar"
ENV TZ="Asia/Shanghai"
RUN ["mkdir", "-p", "/app/lib"]
RUN ["mkdir", "-p", "/opt/lightkits"]
VOLUME /opt/lightkits
COPY ./wms-domain/target/app.jar /app/app.jar
COPY ./lib/transmittable-thread-local-2.6.1.jar /app/lib/transmittable-thread-local-2.6.1.jar
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -jar /app/app.jar" ]
